<?php
namespace app\admin\controller;

use think\Db;

class Index extends Admin
{
    public function index()
    {
        $data['thinkphp_vesrion']=THINK_VERSION;
        $data['php_os']=PHP_OS;
        $data['server_soft']=$_SERVER["SERVER_SOFTWARE"];
        $data['max_upload'] = ini_get("file_uploads") ? ini_get("upload_max_filesize") : "Disabled"; //最大上传
        $info=Db::query('select version() as vsersion');
        $data['mysql_vsersion']=$info['0']['vsersion'];
        $this->assign($data);
        $this->assign('title','首页');
        return $this->fetch();
    }
}
